package com.machine.filling.net.ws.response;

import com.machine.filling.net.http.response.BaseHttpResponseBean;

/**
 * Created by sperfan on 2018/2/28.
 *
 * @描述: websocket 返回数据基类
 */

public class BaseWsResponseBean {
    private String msg;
    private String code;
    private String action;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    /**
     * 判断 是否操作成功
     * @return
     */
    public boolean isCode0000(){
        return "0000".equals(getCode());
    }
}
